Meaning of the word "fire is a good servant but a bad master" in English

What does "fire is a good servant but a bad master" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

fire is a good servant but a bad master

US /ˈfaɪər ɪz ə ɡʊd ˈsɜːrvənt bʌt ə bæd ˈmæstər/
UK /ˈfaɪər ɪz ə ɡʊd ˈsɜːvənt bʌt ə bæd ˈmɑːstər/
"fire is a good servant but a bad master" picture

Idiom

a proverb meaning that fire (or power/technology) is very useful when controlled, but extremely dangerous when it is out of control

Example:
Remember that fire is a good servant but a bad master; always keep an eye on the stove.
The same applies to AI: fire is a good servant but a bad master.